package peppa.george.movie.mapper;

import peppa.george.movie.domain.Movie;
import peppa.george.movie.query.MovieQuery;

import java.util.List;

public interface MovieMapper {
    List<Movie> findAll();

    Movie findById(Long id);

    void save(Movie movie);

    void delete(Long id);

    void update(Movie movie);

    Integer queryByCount(MovieQuery movieQuery);

    List<Movie> queryByPage(MovieQuery movieQuery);

}
